package com.erdos.hyt.mall.model;//

import com.erdos.hyt.base.utils.DictArrayUtil;
import io.swagger.annotations.ApiModelProperty;
import org.apache.ibatis.type.Alias;

import java.math.BigDecimal;//
import java.time.LocalDateTime;
import java.util.Date;//

/**
 * 商品订单详情
 * @author liurong
 * @date 2017年4月1日
 */
@Alias("mallOrderDetail")
public class MallOrderDetail {
    @ApiModelProperty(value = "详情ID")
    private Integer orderId;//详情ID

    @ApiModelProperty(value = "订单编号")
    private String orderCode;//订单编号

    @ApiModelProperty(value = "商品ID")
    private Integer goodsId;//商品ID

    @ApiModelProperty(value = "商品名称快照")
    private String goodName;//商品名称

    @ApiModelProperty(value = "商品分类快照")
    private String goodType;//商品分类

    @ApiModelProperty(value = "商品类别快照")
    private  String goodCategory;

    @ApiModelProperty(value = "用户ID")
    private Integer userId;//用户ID

    @ApiModelProperty(value = "单价")
    private BigDecimal price;//单价

    @ApiModelProperty(value = "运费")
    private  BigDecimal carriage;

    @ApiModelProperty(value = "总价")
    private BigDecimal totalPrice;//总价

    @ApiModelProperty(value = "交易数量")
    private Integer tradeNum;//交易数量

    @ApiModelProperty(value = "订单状态")
    private String orderStatus;//订单状态

    @ApiModelProperty(value = "订单状态展示")
    private  String orderStatusShow;

    @ApiModelProperty(value = "商品规格")
    private  String specification;

    @ApiModelProperty(value = "重量")
    private Double weight;//重量

    @ApiModelProperty(value = "总重量")
    private  Double totalWeight;


    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;//创建时间

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;//修改时间

    @ApiModelProperty(value = "交易流水号")
    private String tradeNo;//交易流水号

    @ApiModelProperty(value = "收货地址")
    private String address;//收货地址

    @ApiModelProperty(value = "收货人")
    private String receiver;//收货人

    @ApiModelProperty(value = "收货电话")
    private String receiverMobile;//收货电话

    @ApiModelProperty(value = "收货邮编")
    private String receivePostcode;//收货邮编

    @ApiModelProperty(value = "下单时间")
    private LocalDateTime orderTime;//下单时间

    @ApiModelProperty(value = "计费单位")
    private String billingUnit;//计费单位

    @ApiModelProperty(value = "发票类型")
    private String invoiceType;

    @ApiModelProperty(value = "发票抬头")
    private String invoiceTitle;

    @ApiModelProperty(value = "发票明细")
    private String invoiceDetail;

    @ApiModelProperty(value = "发票金额")
    private BigDecimal invoiceMoney;

    @ApiModelProperty(value = "创建用户")
    private Integer createUser;//创建用户

    @ApiModelProperty(value = "修改用户")
    private Integer updateUser;//

    @ApiModelProperty(value = "备注")
    private String memo;//备注

    @ApiModelProperty(value = "删除标记")
    private String delFlag;//删除标记

    @ApiModelProperty(value = "付款时间")
    private LocalDateTime payTime;//付款时间

    @ApiModelProperty(value = "快递公司")
    private String expCompany;//快递公司

    @ApiModelProperty(value = "快递编号")
    private String expNumber;//快递编号

    @ApiModelProperty(value = "完成时间")
    private LocalDateTime finishTime;//完成时间


    public String getInvoiceType() {
        return invoiceType;
    }

    public void setInvoiceType(String invoiceType) {
        this.invoiceType = invoiceType;
    }

    public String getInvoiceTitle() {
        return invoiceTitle;
    }

    public void setInvoiceTitle(String invoiceTitle) {
        this.invoiceTitle = invoiceTitle;
    }

    public String getInvoiceDetail() {
        return invoiceDetail;
    }

    public void setInvoiceDetail(String invoiceDetail) {
        this.invoiceDetail = invoiceDetail;
    }

    public BigDecimal getInvoiceMoney() {
        return invoiceMoney;
    }

    public void setInvoiceMoney(BigDecimal invoiceMoney) {
        this.invoiceMoney = invoiceMoney;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public String getOrderCode() {
        return orderCode;//
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode == null ? null : orderCode.trim();//
    }

    public Integer getGoodsId() {
        return goodsId;//
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;//
    }

    public String getGoodName() {
        return goodName;//
    }

    public void setGoodName(String goodName) {
        this.goodName = goodName == null ? null : goodName.trim();//
    }

    public String getGoodType() {
        return goodType;//
    }

    public void setGoodType(String goodType) {
        this.goodType = goodType == null ? null : goodType.trim();//
    }

    public Integer getUserId() {
        return userId;//
    }

    public void setUserId(Integer userId) {
        this.userId = userId;//
    }

    public BigDecimal getPrice() {
        return price;//
    }

    public void setPrice(BigDecimal price) {
        this.price = price;//
    }

    public BigDecimal getTotalPrice() {
        return totalPrice;//
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;//
    }

    public Integer getTradeNum() {
        return tradeNum;//
    }

    public void setTradeNum(Integer tradeNum) {
        this.tradeNum = tradeNum;//
    }

    public String getOrderStatus() {
        return orderStatus;//
    }

    public void setOrderStatus(String orderStatus) {
        this.orderStatus = orderStatus == null ? null : orderStatus.trim();//
    }

    
    public String getTradeNo() {
        return tradeNo;//
    }

    public void setTradeNo(String tradeNo) {
        this.tradeNo = tradeNo == null ? null : tradeNo.trim();//
    }

    public String getAddress() {
        return address;//
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();//
    }

    public String getReceiver() {
        return receiver;//
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver == null ? null : receiver.trim();//
    }

    public String getReceiverMobile() {
        return receiverMobile;//
    }

    public void setReceiverMobile(String receiverMobile) {
        this.receiverMobile = receiverMobile == null ? null : receiverMobile.trim();//
    }

    public String getReceivePostcode() {
        return receivePostcode;//
    }

    public void setReceivePostcode(String receivePostcode) {
        this.receivePostcode = receivePostcode == null ? null : receivePostcode.trim();//
    }

    

    public String getBillingUnit() {
        return billingUnit;//
    }

    public void setBillingUnit(String billingUnit) {
        this.billingUnit = billingUnit == null ? null : billingUnit.trim();//
    }

    public Integer getCreateUser() {
        return createUser;//
    }

    public void setCreateUser(Integer createUser) {
        this.createUser = createUser;//
    }

    public Integer getUpdateUser() {
        return updateUser;//
    }

    public void setUpdateUser(Integer updateUser) {
        this.updateUser = updateUser;//
    }

    public String getMemo() {
        return memo;//
    }

    public void setMemo(String memo) {
        this.memo = memo == null ? null : memo.trim();//
    }

    public String getDelFlag() {
        return delFlag;//
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag == null ? null : delFlag.trim();//
    }

    

    public String getExpCompany() {
        return expCompany;//
    }

    public void setExpCompany(String expCompany) {
        this.expCompany = expCompany == null ? null : expCompany.trim();//
    }

    public String getExpNumber() {
        return expNumber;//
    }

    public void setExpNumber(String expNumber) {
        this.expNumber = expNumber == null ? null : expNumber.trim();//
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public LocalDateTime getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(LocalDateTime orderTime) {
        this.orderTime = orderTime;
    }

    public LocalDateTime getPayTime() {
        return payTime;
    }

    public void setPayTime(LocalDateTime payTime) {
        this.payTime = payTime;
    }

    public LocalDateTime getFinishTime() {
        return finishTime;
    }

    public void setFinishTime(LocalDateTime finishTime) {
        this.finishTime = finishTime;
    }

    public String getGoodCategory() {
        return goodCategory;
    }

    public void setGoodCategory(String goodCategory) {
        this.goodCategory = goodCategory;
    }

    public BigDecimal getCarriage() {
        return carriage;
    }

    public void setCarriage(BigDecimal carriage) {
        this.carriage = carriage;
    }

    public String getOrderStatusShow() {
        return DictArrayUtil.MALL_ORDER_STATUS[Integer.parseInt(orderStatus)];
    }

    public void setOrderStatusShow(String orderStatusShow) {
        this.orderStatusShow = orderStatusShow;
    }

    public String getSpecification() {
        return specification;
    }

    public void setSpecification(String specification) {
        this.specification = specification;
    }

    public Double getWeight() {
        return weight;
    }

    public void setWeight(Double weight) {
        this.weight = weight;
    }

    public Double getTotalWeight() {
        return totalWeight;
    }

    public void setTotalWeight(Double totalWeight) {
        this.totalWeight = totalWeight;
    }
}